package com.awifi.com.thread.pool;

import java.util.Date;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/6/30 16:04
 */
public class TestScheduler {
    public static void main(String[] args) {
        ThreadPool threadPool = new ThreadPool();
        ExecutorService executorService = Executors.newScheduledThreadPool(3);
        for (int i = 0; i < 10;i++) {
            executorService.submit(threadPool);
        }
        /*executorService.shutdown();*/
        System.out.println(Thread.currentThread().getName());
        System.out.println(Thread.currentThread().getPriority());
    }
}


